import { http } from '@/utils/http/axios';

export function getListMachineMaintain(data = {}) {
  return http.request({
    url: '/admin/wip/machineMaintain/list',
    method: 'get',
    data,
  });
}

export function pageMachineMaintain(data = {}) {
  return http.request({
    url: '/admin/wip/machineMaintain/page',
    method: 'post',
    data,
  });
}

export function addMachineMaintain(data = {}) {
  return http.request({
    url: '/admin/wip/machineMaintain/add',
    method: 'post',
    data,
  });
}

export function updateMachineMaintain(data = {}) {
  return http.request({
    url: '/admin/wip/machineMaintain/update',
    method: 'post',
    data,
  });
}

export function delMachineMaintain(data = {}) {
  return http.request({
    url: '/admin/wip/machineMaintain/delete',
    method: 'post',
    data,
  });
}

export function infoMachineMaintain(data = {}) {
  return http.request({
    url: '/admin/wip/machineMaintain/info',
    method: 'post',
    data,
  });
}

export function exportMachineMaintain(data) {
  return http.request({
    url: '/admin/wip/machineMaintain/export',
    method: 'post',
    data,
    responseType: 'blob',
  });
}
